﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" EnableViewState="false"
Inherits="System.Web.Mvc.ViewPage<Gman.WebApp.Models.DiagnosticoModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<script src="../../Scripts/Binding/Diagnostico.js" type="text/javascript"></script>    

 <script type="text/javascript">
     var guid = "<%= Model.ID.ToString()%>";
     var action = "<%= Model.Action.ToString()%>";

     $(document).ready(function() {
         SetupControls();
         SetupActions();

         $("#AddDiagnosticoDetalle").click(function() {
             LoadAddOrEditActivos(null);
         });
     });
     
</script>


<div style="margin-top: 5px;">
    <div class="DataTop">
        <div class="DataTopLeft">
        </div>
        <div class="DataTopRight">
        </div>
    </div>
    <div class="DataContent">
        <div class="DataContentRight" style="height: 50px;">
            <b>Diagnostico de Activos </b>
            <% Html.RenderPartial("ToolBar", Model.ToolBar); %>
        </div>
    </div>
    <div class="DataBottom">
        <div class="DataBottomLeft">
        </div>
        <div class="DataBottomRight">
        </div>
    </div>
</div>


<div style="margin-top:5px;">
    <div class="DataTop">
        <div class="DataTopLeft">
        </div>
        <div class="DataTopRight">
        </div>
    </div>
    <div class="DataContent">
        <div class="DataContentRight">
            <div class="DataTable">

                <fieldset>
                    <table width="100%">
                        <tr>
                            <td>
                                <div class="editor-label">
                                    Numero de Diagnostico
                                </div>
                            </td>
                            <td>
                                <div>
                                    <%= Html.TextBoxFor(model => model.Diagnostico.CodDiag, new { style = "width: 50%;", propertyname = "Diagnostico.CodDiag", ID = "Diagnostico_CodDiag" })%>
                                    
                                    <img id="btnBuscar" src="../../_Images/Search-icon-16.png" alt="Buscar Trans" style="cursor: pointer;" />
                                </div>                                  
                            </td>
                           
                         </tr>               
                        <tr>                            
                            <td style="width: 150px;">
                                <div class="editor-label">
                                    Sede/Tienda
                                </div>
                            </td>
                            <td style="width: 450px">
                                <div>
                                    <%= Html.DropDownListFor(model => model.Diagnostico.IDSede, Model.Sede, new { style = "width: 40%;", propertyname = "Diagnostico.IDSede" })%>
                                </div>
                            </td>
                         </tr>
                        <tr>
                            <td style="width: 150px;">
                                <div class="editor-label">
                                    Motivo
                                </div>
                            </td>
                            <td style="width: 450px">
                                <div>
                                    <%= Html.DropDownListFor(model => model.Diagnostico.MtvoDiag, Model.Motivo, new { style = "width: 40%;", propertyname = "Diagnostico.MtvoDiag" })%>
                                </div>
                            </td>
                         </tr>
                         <tr>
                            <td style="width: 150px;">
                                <div class="editor-label">
                                    Proveedor
                                </div>
                            </td>
                            <td style="width: 450px">
                                <div>
                                    <%= Html.DropDownListFor(model => model.Diagnostico.IDProveedor, Model.Proveedor, new { style = "width: 40%;", propertyname = "Diagnostico.IDProveedor" })%>
                                </div>
                            </td>
                         </tr>
                          <tr>
                            <td style="width: 150px;">
                                <div class="editor-label">
                                    Tecnico
                                </div>
                            </td>
                            <td style="width: 450px">
                                <div>
                                    <%= Html.DropDownListFor(model => model.Diagnostico.CodTecnProvee, Model.PersonalTecnico, new { style = "width: 40%;", propertyname = "Diagnostico.CodTecnProvee" })%>
                                </div>
                            </td>
                         </tr>
                         
                         <tr>
                            <td style="width: 150px">
                                <div class="editor-label">
                                    Fecha Diagnostico
                                </div>
                            </td>                
                            <td>
                                <div>
                                    <%= Html.TextBoxFor(model => model.Diagnostico.FecDiag, new { @class = "date", style = "width: 40%;", propertyname = "Diagnostico.FecDiag" })%>
                                </div>
                            </td>             
                        </tr>
                    </table>
                </fieldset>
            </div>   
        </div>
    </div>    
   <div class="DataContent">
        <div class="DataContentRight" style="height: 400px;">
            <br />
            <b>Diagnosticos </b> 
            <input id="AddDiagnosticoDetalle" type="submit" value="Adicionar" style="float:right;"/>            
            <div id="ListaDiagnosticoDetalleDiv">
             <% Html.RenderPartial("ListaDiagnosticoDetalle", Model); %>         
             </div>
        </div>
    </div>  
    <div class="DataBottom">
        <div class="DataBottomLeft">
        </div>           
        <div class="DataBottomRight">
        </div>
    </div>
</div>


<div id="DiagnosticoDetallePopupDiv">
</div>


</asp:Content>

